import {
    createRouter,
    createWebHashHistory
} from 'vue-router';
import Home from '../views/Home/home.vue';
import routerChild from './routerChild';

const routes = [{
    name: "home",
    path: "/",
    component: Home,
    meta: {
        title: "首页"
    },
    redirect:"/homeIndex",
    children: routerChild 

}]
// 创建路由
const router = createRouter({
    history: createWebHashHistory(),
    routes
})
export default router